﻿using System.Data;

namespace Marmat.Forms.Views
{
    namespace DataGrid
    {
        public class RowCellCustomDrawEventArgs : Grid.RowCellCustomDrawEventArgs
        {
            internal RowCellCustomDrawEventArgs(Forms.DataGrid gridControl, DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs info) : base(gridControl, info)
            {
            }

            public new Forms.DataGrid GridControl
            {
                get
                {
                    return (Forms.DataGrid)base.GridControl;
                }
            }

            public new Column Column
            {
                get
                {
                    return (Column)base.Column;
                }
            }

            public new Row Row
            {
                get
                {
                    DataRowView RowView = (DataRowView)base.Row;
                    var dr = new Row(this.GridControl, RowView.Row);
                    return dr;
                }
            }
        }
    }
}